from ui_yk.Base.Base import Base
from selenium.webdriver.common.by import By

class Page(Base):
    # 定位搜索框
    search_input = (By.ID,'query')
    # 搜索框输入
    def send_search(self):
        self.send_keys(self.search_input,'软件测试自动化')
    # 定位搜索按钮
    search_button = (By.ID,'stb')
    # 点击搜索按钮
    def click_search(self):
        self.click(self.search_button)
    # 第二页
    two = (By.ID,'sogou_page_2')
    def click_two(self):
        self.click(self.two)